package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_prod")
public class Prod implements Serializable {
    /**
     * 商品id
     */
    @TableId(value = "prod_id", type = IdType.AUTO)
    private Long prodId;

    /**
     * SPU
     */
    @TableField(value = "prod_spu")
    private String prodSpu;

    /**
     * 商品分类
     */
    @TableField(value = "prod_type")
    private Integer prodType;

    /**
     * 商品类型;0实物商品1虚拟商品2卡密/网盘
     */
    @TableField(value = "prod_kind")
    private Integer prodKind;

    /**
     * 商品名称
     */
    @TableField(value = "prod_name")
    private String prodName;

    /**
     * 商品品牌
     */
    @TableField(value = "brand_id")
    private Integer brandId;

    /**
     * 商品状态：0草稿1待审核2已上线3已下线4缺货
     */
    @TableField(value = "prod_status")
    private Integer prodStatus;

    /**
     * 商品单位
     */
    @TableField(value = "unit_id")
    private Integer unitId;

    /**
     * 商品标签
     */
    @TableField(value = "tag_id")
    private Integer tagId;

    /**
     * 供应商
     */
    @TableField(value = "supplier")
    private String supplier;

    /**
     * 缩略图
     */
    @TableField(value = "prod_image")
    private String prodImage;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_date")
    private Date updateDate;

    /**
     * 删除标识 0未删除 1已删除
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    /**
     * 删除时间
     */
    @TableField(value = "delete_date")
    private Date deleteDate;

    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private String brandName;
    @TableField(exist = false)
    private String kindName;
    @TableField(exist = false)
    private String unitName;
    @TableField(exist = false)
    private String tagName;


    private static final long serialVersionUID = 1L;
}